package org.wu.framework.lazy.orm.database.lambda.domain;

import org.wu.framework.lazy.orm.core.config.LazyOperationAttribute;

/**
 * describe: PersistenceRepositoryFactory 工厂
 *
 * @author : Jia wei Wu
 * @version : 1.0
 * @date : 2022/1/1 8:59 下午
 */
public class PersistenceRepositoryFactory {

    public static boolean printfQuery = false;


    public static PersistenceRepository create(LazyOperationAttribute lazyOperationAttribute) {
        return new PersistenceRepository(null == lazyOperationAttribute || lazyOperationAttribute.isPrintfQuery());
    }

    public static PersistenceRepository create() {
        return new PersistenceRepository(PersistenceRepositoryFactory.printfQuery);
    }


}
